package com.itrip.itripauth.service.impl;

import com.itrip.itripauth.entity.HotelRoom;
import com.itrip.itripauth.mapper.HotelRoomMapper;
import com.itrip.itripauth.service.HotelRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 酒店房间表 服务实现类
 * </p>
 *
 * @author 四阶段项目二组
 * @since 2020-02-25
 */
@Service
public class HotelRoomServiceImpl extends ServiceImpl<HotelRoomMapper, HotelRoom> implements HotelRoomService {

    @Override
    public List<HotelRoom> hotelRoomListsByMap(Map<String, Object> param) {
        return baseMapper.hotelRoomListsByMap(param);
    }

    @Override
    public HotelRoom getHotelRoomById(Long id) {
        return baseMapper.selectById(id);
    }

}
